@import '~choerodon-ui/lib/style/themes/default';

@success: #00bfa5;
@running: #4d90fe;
@pending: #ffb100;
@failed: #f77a70;
@canceled: #d8d8d8;
@skipped: #d8d8d8;
@stop: #ff7043;
@created: rgba(216, 216, 216, 0.33);
@not_audit: #f1b42d;
@min-height: 36px;

.c7ncd-action-menu-item-content-audit-popover {
  .c7n-popover-inner {
    .c7n-popover-inner-content {
      width: 100%;
      height: 100%;
      padding: 0 !important;
    }
  }
  .c7n-popover-content {
    position: relative;
    bottom: 6px;
    left: 4px;
  }
}

.c7ncd-action-menu-items-content-audit-item {
  text-align: center;
  height: 30px;
  line-height: 30px;
  margin: 0;
  cursor: pointer;
}
.deployment-content-sider-list-sidebar-scroll {
  height: 100%;
}
.deployment-content-sider-list {
  width: 244px;
  position: relative;
  &-column-notfirst {
    border-left: 4px solid transparent;
    height: fit-content;
    min-height: @min-height;
    line-height: @min-height;
  }
  &-column {
    width: 100%;
    padding: 0 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    .c7n-btn {
      margin-top: 5px !important;
      .icon {
        // margin-top: -5px !important;
      }
    }
    &-lines {
      position: absolute;
      width: 244px;
      height: 1px;
      left: 0;
      top: 35px;
      background: #d9e6f2;
    }
    &-history {
      height: 22px;
      font-size: 14px;
      padding-left: 4px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #0f1358;
      line-height: 22px;
      margin-bottom: 20px;
    }
    &-number {
    }
    &-stage {
      margin: 0 auto 0 0;
      &-item {
        width: 0.08rem;
        height: 0.08rem;
        display: inline-block;
        border-radius: 50%;
        background: @canceled;

        &-success {
          background: @success;
        }
        &-skipped {
          background: @skipped;
        }
        &-canceled {
          background: @canceled;
        }
        &-created {
          background: @created;
        }

        &-failed {
          background: @failed;
        }

        &-running {
          background: @running;
        }

        &-pending {
          background: @pending;
        }

        &-stop {
          background: @stop;
        }

        &-not_audit {
          background: @not_audit;
        }
      }

      &-line {
        width: 0.06rem;
        height: 1px;
        border-top: 1px solid #d3d3d3;
        display: inline-block;
        vertical-align: middle;
        margin: 0.02rem;

        &-manual {
          border-top: 1px dotted @not_audit;
        }

        &:first-child {
          display: none;
        }
      }
    }
    &-info {
      width: 208px;
      height: 86px;
      margin-top: 10px;
      margin-bottom: 10px;
      margin-left: 20px;
      background: #ffffff;
      box-shadow: 0px 2px 4px 0px rgba(15, 19, 88, 0.12);
      border-radius: 4px;
      border: 1px solid rgba(83, 101, 234, 0.24);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      padding-left: 10px;
      &-item {
        font-size: 13px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: rgba(15, 19, 88, 0.65);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
  }
}
